inspector: Fix prop-list search
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 3 Apr 2019 11:11:44 +0000 (13:11 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 3 Apr 2019 11:23:34 +0000 (13:23 +0200)
commitdc88a1ebc4016374b3b3c36a46a598117d5cf839
tree5feb943d79317acdc357ad123246057e52904242
parent9cb9843367ad7111d49ce43a034f5aa1fb6cc1f2
inspector: Fix prop-list search

Instead of handle_event(), use set_key_capture_widget().

Also, use the fact that we now propagate key events throughout the
stage, and connect to the GtkInspectorPropList instead of the toplevel.
We only want the search bar to be active while that widget is mapped
and able to receive events.

And also, handle the "search bar" visibility on ::search-started.
gtk/inspector/prop-list.c